<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<script type="text/javascript" src="page/js/common/MD5.js"></script>
	<script src="page/js/setting/userSetting/editPwd.js"></script>
	<jsp:include page="/page/common/confirmAndAlert.jsp" />
</head>
<body>
	<div class="am-padding default-height">
		<div class="am-tabs am-margin" data-am-tabs="">
			<ul class="am-tabs-nav am-nav am-nav-tabs">
				<li class="am-active"><a href="#tab1">修改密码</a></li>
			</ul>
			<div class="am-tabs-bd"
				style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">

				<div class="am-tab-panel am-fade am-active am-in" id="tab1">
					<form class="am-form" id="editpwd_form">
						<input type="hidden" name="userName" id="userName"
							value="${loginUser.userName}" />
						<div class="am-g am-margin-top">
							<div class="am-u-sm-4 am-u-md-2 am-text-right">原始密码</div>
							<div class="am-u-sm-8 am-u-md-4">
								<input type="password" class="am-input-sm" name="password" id="oldPassword">
							</div>
							<div class="am-hide-sm-only am-u-md-6" id="password_msg"></div>
						</div>
						<div class="am-g am-margin-top">
							<div class="am-u-sm-4 am-u-md-2 am-text-right">新密码</div>
							<div class="am-u-sm-8 am-u-md-4">
								<input type="password" class="am-input-sm" name="newPassword"
									id="newPassword">
							</div>
							<div class="am-hide-sm-only am-u-md-6" id="newPassword_msg"></div>
						</div>
						<div class="am-g am-margin-top">
							<div class="am-u-sm-4 am-u-md-2 am-text-right">重新输入</div>
							<div class="am-u-sm-8 am-u-md-4">
								<input type="password" class="am-input-sm" id="repPassword">
							</div>
							<div class="am-hide-sm-only am-u-md-6" id="re_newPassword_msg"></div>
						</div>

						<div class="am-g am-margin-top">
							<div class="am-u-sm-4 am-u-md-2 am-text-right">&nbsp;</div>
							<div class="am-u-sm-8 am-u-md-4 am-text-warning" id="errorMsgDiv">
								&nbsp;</div>
							<div class="am-hide-sm-only am-u-md-6"></div>
						</div>
					</form>
				</div>
			</div>
		</div>
		<div class="am-margin am-text-right">
			<button type="button" class="am-btn am-btn-primary am-btn-xs" onclick="editPassword()">提交保存</button>
		</div>
	</div>
</body>
</html>
